/*
 * BSM6.0
 *
 * Copyright 2012-2013 (C) SINODATA CO., LTD. All Rights Reserved.
 */
package com.sinodata.bsm.inmp.service;

import org.apache.log4j.Logger;

/**
 * <p>
 * Description: 系统的守护进程    
 * 因采集器的软重启而引入的这个类
 * 在此类的私有构造方法中  启动一些不需要重启的服务
 * </p>
 *
 * @author wangyazhou
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * 2012-12-5 上午11:32:50          wangyazhou        1.0         To create
 * </p>
 *
 * @since 
 * @see     
 */
public class DeamonService {

    private static final Logger logger = Logger.getLogger(DeamonService.class);

    private static DeamonService instance = null;

    private DeamonService() {
        //启动socket服务
        logger.info("[TIP]\t 启动socket服务");
        new SocketService().start();
    }

    public static synchronized DeamonService getInstance() {
        if (instance == null) {
            instance = new DeamonService();
        }
        return instance;
    }

    public void init() {

    }
}
